package com.enba.rbacadmin.module.dict.controller.req;

import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

@Data
public class SysDictItemAddUpdateReq {

  @ApiModelProperty("字典项ID")
  private Long id;

  @ApiModelProperty("字典ID")
  private Long dictId;

  @ApiModelProperty("字典项文本")
  @NotBlank(message = "字典项文本不能为空")
  private String itemText;

  @ApiModelProperty("字典项值")
  @NotBlank(message = "字典项值不能为空")
  private String itemValue;

  @ApiModelProperty("字典描述")
  private String description;

  @ApiModelProperty("排序")
  private Integer sortOrder;

  @ApiModelProperty("字典状态（0：禁用 1：可用）")
  @NotNull(message = "字典状态不能为空")
  private Integer status;
}
